const Router = require("koa-router");

const router = new Router({
  prefix: "/news",
});



router.get("/list", async (ctx) => {
    let data = {
        uname:'koa',
        list: [{ title: "娱乐新闻" }, { title: "凤凰新闻" }, { title: "国家新闻" }],
    }
  await ctx.render("newslist",data);
});

router.get("/login", async (ctx) => {
    await ctx.render("newslogin");
  });

module.exports = router;
